package Test;

public abstract class Poultry {
	
	 /*1. 模拟农学院动物医疗系统信息。
	  2. 定义抽象家禽类(Poultry)
	      1. 私有成员变量：动物种类(name)，症状(symptom)，年龄(age)， 病因（illness）
	      2. 提供空参和带参构造方法
	      3. 成员方法：
	          1. 抽象方法症状(showSymptom)
	          2. 普通方法基本信息(showMsg)
	          3. 提供setXxx和getXxx方法*/
	private String name;
	private String symptom;
	private int age;
	private String illness;
	
	public Poultry() {
		super();
	}
	
	public Poultry(String name, String symptom, int age, String illness) {
		super();
		this.name = name;
		this.symptom = symptom;
		this.age = age;
		this.illness = illness;
	}
	
	public abstract void showSymptom();
	
	public void showMsg(){
		System.out.println(name + "------" + symptom + "--------" + age + "-------" + illness);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSymptom() {
		return symptom;
	}

	public void setSymptom(String symptom) {
		this.symptom = symptom;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getIllness() {
		return illness;
	}

	public void setIllness(String illness) {
		this.illness = illness;
	}
	
	

}
